<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page  import="user.com.*" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'result2.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<style type="text/css">
    p.leftmargin {margin-left: 13cm}
    body {background-image:url(D:\Desktop\新建文件夹\02.jpg);}
    </style>
  </head>
  
  <body>
  <header>
		<h1 align="center">南京邮电大学图书馆</h1>
	</header>
   <p class="leftmargin"><br><br><%
   String name=request.getParameter("zhanghao2");
   String word=request.getParameter("mibao1");
   String mb=null;
   myjdbc my1=new myjdbc();
   mb=my1.select1(name);
   if(mb.equals(word)){
	   %>
	  <form id="xiugai" action="result3.jsp">
	  <input type="text" value="请输入新密码"><br><br>
	  <input id="9" name="zhanghao3" type="hidden" value="<%=name %>">
      <input id="8" name="mima2" type="password" value=""><br><br>
      <input type="submit" value="确定" ><br>
      </form>  
	   <% 
   }else{
	   out.println("密保问题不正确");%><br><br> <a href="./denglu.jsp"> 返回</a><%
   }
   %><p class="leftmargin">
  </body>
</html>
